import request from "./request";

//限时购活动管理
//  根据活动名称分页查询
export const flashListApi = (
    params: IflashLisParam
): IResponseData<IflashLisData> =>
    // request.get(`/flash/list/?keyword=${params.keyword}&pageNum=${params.pageNum}&pageSize=${params.pageSize}`);
    request.get(`/flash/list`,{params});

//修改上下线状态
export const flashUpdateStatusApi = (
    id: number | string, status: 0 | 1
): IResponseData<number> => request.post(`/flash/update/status/${id}?status=${status}`)

// 删除活动
export const flashDeleteApi = (id:number) => request.post(`/flash/delete/${id}`)